﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Classes
{
    public class Reservation
    {
        //field variables "personal info"
        string fname; //first name
        string lname; // last name 
        string address; // address
        string country; //country
        string phone; // phone
        string email; // email
        string passport; // passport id
        Flight flight; // flight object
        Connection conn;
        int noOfSeats;
        //----------------------------

        public Reservation(Flight item, Connection conn, int noOfSeats, string fname, string lname, string address, string country, string phone, string email, string passport)
        {
            this.fname = fname;
            this.lname = lname;
            this.address = address;
            this.country = country;
            this.phone = phone;
            this.email = email;
            this.passport = passport;
            this.flight = item;
            this.noOfSeats = noOfSeats;
            this.conn = conn;
                    
        }
        //set /get for personal info

        public string Fname
        {
            get { return fname; }
            set { fname = value; }
        }

        

        public Connection Conn
        {
            get { return conn; }
            set { conn = value; }
        }
        public string Lname
        {
            get { return lname; }
            set { lname = value; }
        }


        public string Address
        {
            get { return address; }
            set { address = value; }
        }


        public string Country
        {
            get { return country; }
            set { country = value; }
        }


        public string Phone
        {
            get { return phone; }
            set { phone = value; }
        }


        public string Email
        {
            get { return email; }
            set { email = value; }
        }


        public string Passport
        {
            get { return passport; }
            set { passport = value; }
        }

        public Flight Flight
        {
            get { return flight; }
            set { flight = value; }
        }
        public int NoOfSeats
        {
            get { return noOfSeats; }
            set { noOfSeats = value; }
        }
        //-------------------------

    }


}
